|
|
|
|
|
|
|
The help text or topics files are linked together by adding HTML <A> tags that include the reference to the next topic file, or you can use a special ActiveX control that comes with the HTML Help workshop to enable the user to click a button and jump to another topic. The process of building topic files has not changed except for one very important itemthat is, each topic should now be a separate document that is then converted into HTML format. To create most topics files, all you need to do is the following: |
|
|
|
|
|
|
|
|
Enter the text for each topic. |
|
|
|
|
|
|
|
|
Add the HTML tags to support the included features (links, images, and so on). |
|
|
|
|
|
|
|
|
Because you have already seen how to build topic files, take the existing document from the standard help system you created earlier and break it into four separate documents. Then, if your word processor supports it, convert the documents into HTML format. If your word processor does not support this function, you will need to create each HTML file manually and add the text to it. |
|
|
|
|
|
|
|
|
Note When saving these files as HTML, you should use the listing names as they will be referenced later in this chapter when adding HTML tag codes. |
|
|
|
|
|
|
|
|
|
Unlike the old Windows help system, to set a link for a topic, you need to know the name of the HTML file that you want to jump to. This requires you to create most of the topic files before you start adding links and pop-ups to the topic files themselves. This changes the process into a two-step process, one to create the topic files, and the second one to add any required links. To see how to add a link to a topic, open the table of contents file (TOC.HTM) in Notepad, and replace the first item link with the following statement. |
|
|
|
|
|
|
|
|
<A HREF=TOPIC1.HTM>The Windows Common Dialog in Use</A> |
|
|
|
|
|
|
|
|
As you can see, the file that you want to jump to is inserted into the <A> tag. Now, perform the same process for the remaining topic links listed on the table of contents, as shown in Figure 17.26. All three links should use the <A> tag. |
|
|
|
|
|